//不验证登录接口列表
let list = ["/","/favicon.ico","/adm/login", "/upload", "/temp/*","/idc","/api/register", "/upload/images/*"];
module.exports = src => {
  try {
    //是否在白名单内
    let bool = false;
    list.map(val => {
      let v = val.split("*");
      let j = src.split(v[0]);
      if (j.length > 1 && v.length > 1) {
        bool = true;
      } else {
        if (val === src) {
          bool = true;
        }
      }
    });
    return bool;
  } catch (error) {
    console.error(error);
    return false;
  }
};
